package com.study.zouchao.superproject.modifyuserinfo.model.impl;
import com.study.zouchao.superproject.base_zou.api_zou.Api_C;
import com.study.zouchao.superproject.modifyuserinfo.contract.IModifyUserInfoContract;
import com.study.zouchao.superproject.modifyuserinfo.model.entity.updateinfo.ModifyUserInfoResult;
import com.study.zouchao.superproject.util.RxSchedulers;
import com.study.zouchao.superproject.util.api.api.Api;

import java.util.Map;


import rx.Observable;

/**
 * Created by Administrator on 2017/1/29.
 */

public class ModifyUserInfoModel implements IModifyUserInfoContract.IModifyUserInfoModel {

    @Override
    public Observable<ModifyUserInfoResult> saveModifyUserInfo(Map<String, String> params) {
        return Api.getInstance(Api_C.BASE_URL_LIN_BASE).mApiService
                .modifyUserInfosByPOST(params)
                .compose(RxSchedulers.<ModifyUserInfoResult>io_main());
    }
}
